libxc: Check xc_domain_maximum_gpfn for negative return values
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 13 Mar 2015 18:57:44 +0000 (14:57 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 20 Mar 2015 16:06:53 +0000 (16:06 +0000)
commita8f8a590e02d2d2b717257c0bd9a8b396103bdf4
tree8e97d36b7ce280d0fa3b17704d20967d4ad86fc3
parentaf5d428947eec99fd08fd17bcbd364730e5f8fab
libxc: Check xc_domain_maximum_gpfn for negative return values

Instead of assuming everything is always OK. We stash
the gpfns value as an parameter. Since we use it in three
of places we might as well update xc_domain_maximum_gpfn
to do the right thing.

Suggested-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_core_arm.c
tools/libxc/xc_core_x86.c
tools/libxc/xc_domain.c
tools/libxc/xc_domain_save.c